package com.chinaoly.sdk.view.http_test;




import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 *带token
 */

public class TokenInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request()
                .newBuilder()
                .addHeader("Authorization", token)
                .build();
        return chain.proceed(request);
    }
    private static  String token = "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo1LCJ1c2VybmFtZSI6Ilx1OTY0OFx1N2FjYlx1ODMwMiIsImV4cCI6MTU3MjUwNjg0OCwiZW1haWwiOm51bGx9.urNr3zSxQa98Ixc1UShOzpsUsSPiQNgG4CGScLOTVu0";
}
